﻿using System.ComponentModel.DataAnnotations;

namespace Md.Api.Model.Manage.SysConfig.Request;
/// <summary>
/// 分页获取系统配置列表请求实体
/// </summary>
public class RequestGetSysConfigPageListModel : RequestBaseModel
{
    /// <summary>
    /// 配置名称
    /// </summary>
    public string? ConfigName { get; set; }
    /// <summary>
    /// 配置键名
    /// </summary>
    public string? ConfigKey { get; set; }
    /// <summary>
    /// 配置键值
    /// </summary>
    public string? ConfigValue { get; set; }
    /// <summary>
    /// 系统内置（Y系统内置 M图片 F文件 T文本）
    /// </summary>
    public string? ConfigType { get; set; }
    /// <summary>
    /// 创建者
    /// </summary>
    public string? CreateBy { get; set; }
    /// <summary>
    /// 更新者
    /// </summary>
    public string? UpdateBy { get; set; }
    /// <summary>
    /// 开始时间
    /// </summary>
    public DateTime? BeginDate { get; set; }
    /// <summary>
    /// 结束时间
    /// </summary>
    public DateTime? EndDate { get; set; }
    /// <summary>
    /// 排序字段
    /// </summary>
    public string OrderBy { get; set; } = string.Empty;
    /// <summary>
    /// 是否倒序
    /// </summary>
    public bool IsDesc { get; set; }
    /// <summary>
    /// 当前页
    /// </summary>
    [Required(ErrorMessage = "当前页数不能为空")]
    public int PageIndex { get; set; }
    /// <summary>
    /// 每页条数
    /// </summary>
    [Required(ErrorMessage = "每页条数不能为空")]
    public int PageSize { get; set; }
}

